package com.example.vertification.entity;

import lombok.Data;

import javax.persistence.*;

@Entity
@Table(name = "userstatics")
@Data // 这个注解会自动生成getter、setter、equals、hashCode和toString方法
public class UserStatics {

    @Id
    @Column(nullable = false)
    private long uid;


    @Column(name = "questionYes", nullable = true)
    private long questionYes;

    @Column(name = "questionNo", nullable = true)
    private long questionNo;

    public UserStatics() {

    }
    public UserStatics(long uid, long questionYes, long questionNo) {
        this.uid = uid;
        this.questionYes = questionYes;
        this.questionNo = questionNo;
    }
}